package com.tanhua.server.enums;

public enum ProfessionEnum {
    // 制造
    YANCAO("烟草制造", "制造"),
    FANGZHI("纺织业", "制造"),
    JIAJU("家具制造业", "制造"),
    //服务
    FUWUYUAN("服务员", "服务"),
    WAIMAIYUAN("外卖员", "服务"),
    KUAIDIYUAN("快递员", "服务"),
    // 地产
    FANGSDICHAN("房地产", "地产"),
    XIAOSHOU("房产销售", "地产"),
    // 住宿
    JIUDIAN("酒店", "住宿"),
    NVSHE("旅社", "住宿"),
    // 教育
    QINGHAI("教师", "教育"),
    YOUSHI("幼师", "教育"),
    XIAOZHANG("校长", "教育"),
    // 餐饮
    FANGUAN("饭馆", "餐饮"),
    DAPAIDANG("大排档", "餐饮"),
    // 电竞
    XUANSHOU("选手", "电竞"),
    JIAOLIAN("教练", "电竞"),
    // 医疗
    YISHENG("医生", "医疗"),
    HUSHI("护士", "医疗"),
    // 媒体
    JIZHE("记者", "媒体"),
    ZHUBO("主播", "媒体"),
    // 安保
    BAOAN("保安", "安保");
    private String job;
    private String profession;

    ProfessionEnum(String job, String profession) {
        this.job = job;
        this.profession = profession;
    }

    public String getJob() {
        return job;
    }

    public String getProfession() {
        return profession;
    }

    public static String getProfessionEnumByJob(String job) {
        String profession = "未知";
        for (ProfessionEnum areaEnum : values()) {
            if (areaEnum.job.equals(job)) {
                profession = areaEnum.profession;
                break;
            }
        }
        return profession;
    }
}